package com.cjh.wechat.websocket.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.cjh.wechat.commom.pojo.Notify;

public interface NotifyDao
{
    int deleteByPrimaryKey(Integer no);
    
    int insert(Notify record);
    
    int insertSelective(Notify record);
    
    Notify selectByPrimaryKey(Integer no);
    
    int updateByPrimaryKeySelective(Notify record);
    
    int updateByPrimaryKey(Notify record);
    
    List<Notify> findByUid(@Param(value = "uid") String uid, @Param(value = "startNum") Integer startNum, @Param(value = "endNum") Integer endNum);
    
    int findByUidSum(String uid);
    
    int isExist(@Param(value = "uid")String uid,@Param(value = "fromUid") String fromUid, @Param(value = "type")Integer type);
    
    int updateByUidSelective(Notify record);
    
    int getUnreadMsgNum(String uid);
}
